package com.masterclient.app.modules.order;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.eoner.managerlibrary.router.AroutePath;
import com.masterclient.app.BaseActivity;
import com.masterclient.app.R;
import com.masterclient.app.modules.order.adapter.OrderFlowAdapter;
import com.masterclient.app.widget.TitlebarView;

import java.util.Arrays;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @auther hjian
 * @date 2020/9/22.
 */
@Route(path = AroutePath.ORDER_FLOW_ACTIVITY)
public class OrderFlowActivity extends BaseActivity {

    @BindView(R.id.order_flow_bar)
    TitlebarView orderFlowBar;
    @BindView(R.id.order_flow_img)
    ImageView orderFlowImg;
    @BindView(R.id.order_flow_order_no)
    TextView orderFlowOrderNo;
    @BindView(R.id.order_flow_recycler)
    RecyclerView orderFlowRecycler;

    private OrderFlowAdapter flowAdapter;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_flow);
        ButterKnife.bind(this);

        orderFlowBar.setOnViewClick(new TitlebarView.onViewClick() {
            @Override
            public void leftClick() {
                finish();
            }

            @Override
            public void rightClick() {

            }
        });


        orderFlowRecycler.setLayoutManager(new LinearLayoutManager(this));
        flowAdapter = new OrderFlowAdapter();
        flowAdapter.bindToRecyclerView(orderFlowRecycler);
        String[] strings = {"","","","","","",""};
        flowAdapter.setNewData(Arrays.asList(strings));
    }
}
